package onlinejudge.entity;

/**
 * 用户做题实体
 * @author hqz
 */
public class UserProblem {

	private int userProblemId;
	private int userId;
	private int problemId;
	private String code;
	private String status;
	private String submitDate;
	
	public UserProblem() {
		super();
	}
	public UserProblem(int userProblemId, int userId, int problemId, String code, String status, String submitDate) {
		super();
		this.userProblemId = userProblemId;
		this.userId = userId;
		this.problemId = problemId;
		this.code = code;
		this.status = status;
		this.submitDate = submitDate;
	}
	
	public int getUserProblemId() {
		return userProblemId;
	}
	public void setUserProblemId(int userProblemId) {
		this.userProblemId = userProblemId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getProblemId() {
		return problemId;
	}
	public void setProblemId(int problemId) {
		this.problemId = problemId;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getSubmitDate() {
		return submitDate;
	}
	public void setSubmitDate(String submitDate) {
		this.submitDate = submitDate;
	}
	@Override
	public String toString() {
		return "UserProblem [userProblemId=" + userProblemId + ", userId=" + userId + ", problemId=" + problemId
				+ ", code=" + code + ", status=" + status + ", submitDate=" + submitDate + "]";
	}
}
